package com.qys.livesMall.system.model.dto.sys;

import io.swagger.v3.oas.annotations.media.Schema;
import jakarta.validation.Valid;
import jakarta.validation.constraints.NotBlank;
import jakarta.validation.constraints.NotNull;
import lombok.Data;

import java.util.List;

@Data
public class PlatformAdvertisementDto {

    @Schema(description = "ID")
    private Long id;

    @NotBlank(message = "广告名称不能为空")
    @Schema(description = "广告名称")
    private String name;

    @NotNull(message = "位置不能为空")
    @Schema(description = "位置 0：首页 1：其他")
    private Integer position;

    @NotNull(message = "轮播图不能为空")
    @Valid
    private List<PlatformAdvertisementDetailDto> platformAdvertisementDetailDtos;
}
